<#import "/spring.ftl" as spring/>

<#macro add click attr=''>
	<el-button type="success" plain size="small" icon="el-icon-plus" @click="${click}" ${attr}>添加</el-button>
</#macro>

<#macro save click attr=''>
	<el-button type="success" plain size="small" icon="el-icon-success" @click="${click}" ${attr}>保存</el-button>
</#macro>

<#macro search click attr=''>
	<el-button type="primary" @click="${click}" icon="el-icon-search"  ${attr}>查询</el-button>
</#macro>

<#macro delete click attr=''>
	<el-button type="danger" plain size="small" icon="el-icon-delete" @click="${click}" ${attr}>删除</el-button>
</#macro>


<#macro back click attr=''>
	<el-button plain size="small" icon="el-icon-back" @click.native="${click}" ${attr}>返回</el-button>
</#macro>

<#macro cancel click attr=''>
	<el-button plain size="small" icon="el-icon-back" @click.native="${click}" ${attr}>取消</el-button>
</#macro>

<#macro close click>
	<el-button plain size="small" icon="el-icon-close" @click.native="${click}">关闭</el-button>
</#macro>

<#macro submit click attr=''>
	<el-button plain type="primary" size="small" icon="el-icon-success" @click.native="${click}" ${attr} >提交</el-button>
</#macro>

<#macro complete click attr=''>
	<el-button type="primary" plain size="small"  @click="${click}" ${attr}>完成</el-button>
</#macro>
